<!-- Columns -->
<div id="cols" class="box"> 

    <!-- Aside (Left Column) -->
    <div id="aside" class="box">
        <div class="padding box"> 

            <!-- Logo (Max. width = 200px) -->
            <p id="logo"><a href="#"><?php echo $this->Html->image('logo.gif', array('alt' => 'logo')) ?></a></p>

            <!-- Search -->
        </div>
        <!-- /padding -->

        <ul class="box">
            <li id="submenu-active"><a href="#">LISTA DE VENTAS DE MATERIAL</a></li>
            <li><?php echo $this->Html->link('REGISTRAR VENTA', array('action' => 'insertar')); ?></li>
            
        </ul>
    </div>
    <!-- /aside -->
    <hr class="noscreen" />
    <!-- Content (Right Column) -->
    <div id="content" class="box">
        <h1>VENTAS</h1>
        <table>
            <tr>
                <th>Nro</th>
                <th>Numero</th>
                <th>Comprador</th>
                <th>Responsable</th>
                <th>Fecha</th>
                
                <th>Acci&oacute;n</th>             
            </tr>   
            <?php  $i = 1;  ?>
            <?php $i=1; foreach ($ventas as $venta): ?>
         
                    <td><?php echo $i; $i++; ?></td>
                    <td><?php echo $venta['Notaventa']['numero']; ?></td>
                    <td><?php echo $venta['Notaventa']['comprador']; ?></td>
                    <td><?php echo $venta['Usuario']['nombre']; ?></td>
                    <td><?php $fecha=explode('-',$venta['Notaventa']['fecha']);echo $fecha[2].'-'.$fecha[1].'-'.$fecha[0];?></td>
                    <td style="font-size:10px;">
                     <?php echo $this->Html->link('DETALLE',array('action' => 'detalle', $venta['Notaventa']['id']), array('class' => 'inner_a')); ?>
                    </td>
                </tr>
            
            <?php endforeach; ?>

        </table>

    </div>
    <!-- /content --> 

</div>
<!-- /cols -->
